home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / libsrc~1.z / libsrc~1 / pipe.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-28  |  215 b   |  15 lines

  1. #include "lib.h"
  2.  
  3. PUBLIC int pipe(fild)
  4. int fild[2];
  5. {
  6.   int k;
  7.   k = callm1(FS, PIPE, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
  8.   if (k >= 0) {
  9.     fild[0] = M.m1_i1;
  10.     fild[1] = M.m1_i2;
  11.     return(0);
  12.   } else
  13.     return(k);
  14. }
  15.